package com.lovo.pis.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_user")
public class UserBean {

    @TableId(value = "id", type = IdType.AUTO)
    private int id;
    private String username;
    private String password;
    //真名
    private String realName;
    //邮箱
    private String email;
    @TableField(exist = false)
    private List<RoleBean> roleList;

}
